<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@taglib uri="http://www.goodfox.com/jsp/tags/power" prefix="p"%>
<%@taglib uri="http://www.springframework.org/tags" prefix="spring" %>
<script type="text/javascript">
</script>
<div class="pageContent" style="border-left: 1px solid #B8D0D6;border-right: 1px solid #B8D0D6;">
	<div class="panelBar">
		<ul class="toolBar">
			<li><span><spring:message code="search.lnkGoDetail"/>${fun.funName}</span></li>
			<li class="line">line</li>
        	<c:if test="${p:isPower('/function/goFunctionAdd.shtml',sessionScope.loginAccount)}">
			<li><a class="add" href="<c:url value="/function/goFunctionAdd.shtml"/>?funId=${fun.funId}" target="ajax" rel="funShowPage"><span><spring:message code="search.btnGoAdd"/></span></a></li>
			</c:if>
        	<c:if test="${p:isPower('/function/goFunctionModify.shtml',sessionScope.loginAccount)}">
			<li><a class="edit" href="<c:url value="/function/goFunctionModify.shtml"/>?funId=${fun.funId}" target="ajax" rel="funShowPage"><span><spring:message code="search.btnGoModify"/></span></a></li>
			</c:if>
        	<c:if test="${p:isPower('/function/functionRemove.shtml',sessionScope.loginAccount)}">
			<li><a class="delete" href="<c:url value="/function/functionRemove.shtml"/>?funId=${fun.funId}" target="ajaxTodo" rel="funShowPage"><span><spring:message code="search.btnRemove"/></span></a></li>
			</c:if>
		</ul>
	</div>
    <table class="tableForm" cellpadding="0" cellspacing="1" width="100%" align="center">          
        <tbody>
            <tr>
            	<td>所属功能：</td>
                <td>${fun.funNameParent}</td>
                <td>适用范围：</td>
                <td>${fun.funScopeName}</td>
            </tr>
            <tr>
                <td>功能名称：</td>
                <td>${fun.funName}</td>
                <td>功能编码：</td>
                <td>${fun.funCode}</td>
            </tr>
            <tr>
                <td>使用方式：</td>
                <td>${fun.funUseName}</td>
                <td>显示排序：</td>
                <td>${fun.funSort}</td>
            </tr>
            <tr>
                <td>访问路径：</td>
                <td colspan="3">${fun.funUseUrl}</td>
            </tr>
            <tr>
                <td>英文名称：</td>
                <td>${fun.funNameUs}</td>
                <td>功能值：</td>
                <td>${fun.funValue}</td>
            </tr>
            <tr>
                <td>功能状态：</td>
                <td>${fun.funStateName}</td>
                <td colspan="2"></td>
            </tr>
            <tr>
                <td>备注：</td>
                <td colspan="3">${fun.funRemark}</td>
            </tr>
        </tbody>
    </table>
</div>
<div class="pageContent" style="border-left: 1px solid #B8D0D6;border-right: 1px solid #B8D0D6;">
	<div class="panelBar">
		<ul class="toolBar">
			<li><span><spring:message code="search.lnkGoDetail"/>${fun.funName}资源</span></li>
			<li class="line">line</li>
        	<c:if test="${p:isPower('/function/goResourcesAdd.shtml',sessionScope.loginAccount)}">
			<li><a class="add" href="<c:url value="/function/goResourcesAdd.shtml"/>?funId=${fun.funId}" target="ajax" rel="funShowPage"><span><spring:message code="search.btnGoAdd"/></span></a></li>
			</c:if>
	        <c:if test="${p:isPower('/function/resourcesRemoveBat.shtml',sessionScope.loginAccount)}">
			<li><a class="delete" href="<c:url value="/function/resourcesRemoveBat.shtml"/>" target="selectedTodo" rel="rseIds" title="确实要删除这些记录吗?"><span><spring:message code="search.btnRemoveBat"/></span></a></li>
			</c:if>
		</ul>
	</div>
    <table class="tableForm" cellpadding="0" cellspacing="1" width="100%" align="center">   
    	<thead>
			<tr>
				<th width="22"><input type="checkbox" group="resIds" class="checkboxCtrl"></th>
				<th>资源类型</th>
				<th>资源地址</th>
				<th>资源类</th>
				<th>资源方法</th>
				<th>资源状态</th>
				<th>操作</th>
			</tr>
		</thead>   
		<tbody>
			<c:forEach items="${rseList}" var="rse">
			<tr target="sid_user" rel="${rse.rseId}">
				<td><input name="resIds" value="${rse.rseId}" type="checkbox"></td>
				<td>${rse.rseTypeName}</td>
				<td>${rse.rseUrl}</td>
				<td>${rse.rseClass}</td>
				<td>${rse.rseFunction}</td>
				<td>${rse.rseStateName}</td>
				<td>
					<c:if test="${p:isPower('/function/goResourcesDetail.shtml',sessionScope.loginAccount)}">
					<a title="资源<spring:message code="search.lnkGoDetail"/>" target="navTab" rel="rseShowPage" href="<c:url value="/function/goResourcesDetail.shtml"/>?rseId=${rse.rseId}" class="btnView"><spring:message code="search.lnkGoDetail"/></a>
        			</c:if>
        			<c:if test="${p:isPower('/function/goResourcesModify.shtml',sessionScope.loginAccount)}">
					<a title="资源<spring:message code="search.lnkGoModify"/>" target="navTab" rel="rseShowPage" href="<c:url value="/function/goResourcesModify.shtml"/>?rseId=${rse.rseId}" class="btnEdit"><spring:message code="search.lnkGoModify"/></a>
					</c:if>
					<c:if test="${p:isPower('/function/resourcesRemove.shtml',sessionScope.loginAccount)}">
					<a title="资源<spring:message code="search.lnkGoRemove"/>" target="ajaxTodo" href="<c:url value="/function/resourcesRemove.shtml"/>?rseId=${rse.rseId}" class="btnDel"><spring:message code="search.lnkGoRemove"/></a>
					</c:if>
				</td>
			</tr>
			</c:forEach>
		</tbody>
    </table>
</div>